﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Munim.Fame.Core.DomainModels;
using Munim.Fame.DataAccess.Agents;
using Ninject;

namespace Munim.Fame.Business.Service
{
    public interface IMediaService
    {
        IList<Media> GetAll();
        Media GetById(int id);
        IList<Media> GetByCategory(Category category);
        IList<Media> GetByLanguage(Language language);
    }

    public class MediaService : IMediaService
    {
        private readonly IKernel _kernel;
        private readonly IMediaRepository _mediaRepository;

        public MediaService(IKernel kernel, IMediaRepository mediaRepository)
        {
            _mediaRepository = mediaRepository;
            _kernel = kernel;
        }

        #region Implementation of IMediaService

        public IList<Media> GetAll()
        {
            return _mediaRepository.GetAllMedias();
        }

        public Media GetById(int id)
        {
            return null;
        }

        public IList<Media> GetByCategory(Category category)
        {
            return null;
        }

        public IList<Media> GetByLanguage(Language language)
        {
            return null;
        }

        #endregion
    }
}
